
from django.db import models
from datetime import datetime


class Member(models.Model):
    name = models.CharField(max_length=30,verbose_name='姓名')
    idNumber = models.CharField(max_length=30, verbose_name='身份证号')
    mobile = models.CharField(verbose_name='手机',max_length=20)
    password = models.CharField(max_length=30, verbose_name='密码')
    address = models.CharField(max_length=50, verbose_name='快递地址')
    createDate = models.DateTimeField(verbose_name='注册时间', default=datetime.now)
    class Meta:
        verbose_name = verbose_name_plural = '申请人'
        ordering = ['-createDate']











